//
//  PropertyItem.m
//  HengHuaSupervision
//
//  Created by XD-XY on 3/27/14.
//  Copyright (c) 2014 XD-XY. All rights reserved.
//

#import "PropertyItem.h"

@implementation PropertyItem

-(instancetype) initWithDictionary:(NSDictionary*) dic{
    
    NSCParameterAssert(dic);
    self = [super init];
    self.propertyid = [dic valueForKey:@"id"];
    self.name = [dic valueForKey:@"name"];
    self.code = [dic valueForKey:@"code"];
    self.model = [dic valueForKey:@"model"];
    self.type = [dic valueForKey:@"type"];
    self.factory_name = [dic valueForKey:@"factory_name"];
    self.factory_code = [dic valueForKey:@"factory_code"];
    self.factory_addr = [dic valueForKey:@"factory_addr"];
    self.factory_linkman = [dic valueForKey:@"factory_linkman"];
    self.factory_phone = [dic valueForKey:@"factory_phone"];
    self.supervision_unitname = [dic valueForKey:@"supervision_unitname"];
    self.supervision_unitcode = [dic valueForKey:@"supervision_unitcode"];
    self.supervision_mode = [dic valueForKey:@"supervision_mode"];
    self.supervision_linkman = [dic valueForKey:@"supervision_linkman"];
    self.version = [dic valueForKey:@"version"];
    self.status = [dic valueForKey:@"status"];
    return self;
}

@end
